﻿using System;
using LDSCore;

namespace LDSBusiness.EventArgs
{
    /// <summary>
    /// 油罐状态改变事件参数
    /// </summary>
    public class OilTankStateChangedEventArgs : System.EventArgs
    {
        /// <summary>
        /// 获取油罐Id
        /// </summary>
        public Guid OId { get; private set; }

        /// <summary>
        /// 获取在线设备数量
        /// </summary>
        public int OnlineDeviceCount { get; private set; }

        /// <summary>
        /// 获取油罐状态
        /// </summary>
        public DeviceState State { get; private set; }

        /// <summary>
        /// 设备状态改变事件参数
        /// </summary>
        /// <param name="oid">油罐Id</param>
        /// <param name="onlineDeviceCount">在线设备数量</param>
        /// <param name="state">油罐状态</param>
        public OilTankStateChangedEventArgs(Guid oid, int onlineDeviceCount, DeviceState state)
        {
            OId = oid;
            OnlineDeviceCount = onlineDeviceCount;
            State = state;
        }
    }
}
